import request from '@/utils/request'

/**
 * @description: 保存销售出库单
 * @param {*} params
 * @return {*}
 */
export function saveXsckdOrder(data) {
  return request({
    url: '/order/xsckd/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取销售出库单清单
 * @param {*} data
 * @return {*}
 */
export function getXsckdOrderList(params) {
  return request({
    url: '/order/xsckd/list',
    method: 'get',
    params
  })
}

/**
 * @description: 获取销售出库单详情
 * @param {*} params
 * @return {*}
 */
export function getXsckdDetail(params) {
  return request({
    url: '/order/xsckd/detail',
    method: 'get',
    params
  })
}

/**
 * @description: 单据、反审核
 * @param {*} data
 * @return {*}
 */
export function examineXsckd(data) {
  return request({
    method: 'post',
    url: '/order/xsckd/examine',
    data
  })
}

/**
 * @description: 更新销售订单
 * @param {*} data
 * @return {*}
 */
export function updateXsckd(data) {
  return request({
    url: '/order/xsckd/update/2',
    method: 'post',
    data
  })
}

/**
 * @description: 销售出库单删除
 * @param {*} data
 * @return {*}
 */
export function deleteXsckd(data) {
  return request({
    url: '/order/xsckd/delete',
    method: 'post',
    data
  })
}
